<?php

class IndexAction extends Action{

    public function index(){//首页
        //$form = D('Form')->select();
        //dump ( $form );
        //exit;
        //L('SiteName','语言定义');
        //$SiteName = L('SiteName');
		//$this->assign('SiteName',$SiteName);
		$agent = $_SERVER['HTTP_USER_AGENT'];
if(strpos($agent,"NetFront") || strpos($agent,"iPhone") || strpos($agent,"MIDP-2.0") || strpos($agent,"Opera Mini") || strpos($agent,"UCWEB") || strpos($agent,"Android") || strpos($agent,"Windows CE") || strpos($agent,"SymbianOS")){
		$this->display('indexwap');
		}
		else {
		$this->display();	
			}
    }
	public function add(){
	require('ArticelAction.class.php');
	echo "123";
	}
	 /**
    +----------------------------------------------------------
    * 探针模式
    +----------------------------------------------------------
    */
    public function checkEnv() {
        load('pointer',THINK_PATH.'/Tpl/Autoindex');//载入探针函数
        $env_table = check_env();//根据当前函数获取当前环境
        echo $env_table;
    }
	
}
?>